package com.example.skyline.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.skyline.entity.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RoleMapper extends BaseMapper<Role> {

    //    分页查询角色列表
    List<Role> getRoleListByRole(@Param("start") Integer start,
                                 @Param("pageSize") Integer pageSize);
    Integer getRoleCount();

    List<Role> selectRoleList();

}
